import PySimpleGUI as ps
layout = [
    [ps.T("测试1",key='name'),ps.B('点一下')]
]
window = ps.Window("hehe",layout)

while True:
    event,values = window.read()
    print(event)
    if event == None:
        break

window.close()